package com.charmzenus.champion.dagger.module.activity;

import com.charmzenus.champion.presenter.activity.MainActivityPresenter;
import com.charmzenus.champion.ui.activity.MainActivity;

import dagger.Module;
import dagger.Provides;

/**
 * Created by a1899 on 2018/4/24.
 */
@Module
public class MainActivityModule {
    MainActivity mainActivity;

    public MainActivityModule(MainActivity mainActivity) {
        this.mainActivity = mainActivity;
    }

    @Provides
    MainActivityPresenter provideMainActivityPresenter() {

        return new MainActivityPresenter(mainActivity);
    }
}
